import 'package:aitao_flutter/utils/sp_utils.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../../const/common_const.dart';
import '../../pop_window/show_young_mode.dart';
import '../../routes/routes.dart';

class HomeController extends GetxController {
  final List<String> tabList = [
    HomeStringConst.hotText,
    HomeStringConst.recommendedText,
    HomeStringConst.aliveText,
    HomeStringConst.newPeopleText,
    HomeStringConst.refreshText
  ];

  void getYoungMode() {
    if (SpUtil.getYoungModeStatus()) {
      showDialog(
          // barrierDismissible: false,
          context: Get.context!,
          builder: (builder) {
            return ShowYoundModeWindow(
              forgetCallBack: () {
                debugPrint('忘记密码');
              },
              closeModeCallBack: () {
                debugPrint('关闭');
                Get.toNamed(Routes.closeYoungModePage);
              },
            );
          });
    }
  }
}
